package com.jframe.sys.webui;

public class Grid {
	private String id="grid";
	private String title="";
	private boolean border=false;
	private boolean fit=true;
	private boolean nowrap=true;
	private boolean collapsible=false;
	private boolean striped=true;
	private String method="post";
	private String url="";
	private String sortName="";
	private String sortOrder="";
	private boolean remoteSort=false;
	private String idField="id";
	private String frozenColumns="[]";
	private String columns="[]";
	private boolean pagination=true;
	private boolean rownumbers=false;
	private boolean singleSelect=true;
	private String loadMsg="正在加载数据......";
	private boolean editable=false;
	
	public boolean isFit() {
		return fit;
	}
	public void setFit(boolean fit) {
		this.fit = fit;
	}
	public boolean isNowrap() {
		return nowrap;
	}
	public void setNowrap(boolean nowrap) {
		this.nowrap = nowrap;
	}
	public boolean isCollapsible() {
		return collapsible;
	}
	public void setCollapsible(boolean collapsible) {
		this.collapsible = collapsible;
	} 
	public boolean isStriped() {
		return striped;
	}
	public void setStriped(boolean striped) {
		this.striped = striped;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getSortName() {
		return sortName;
	}
	public void setSortName(String sortName) {
		this.sortName = sortName;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public boolean isRemoteSort() {
		return remoteSort;
	}
	public void setRemoteSort(boolean remoteSort) {
		this.remoteSort = remoteSort;
	}
	public String getIdField() {
		return idField;
	}
	public void setIdField(String idField) {
		this.idField = idField;
	}
	public String getFrozenColumns() {
		return frozenColumns;
	}
	public void setFrozenColumns(String frozenColumns) {
		this.frozenColumns = "["+frozenColumns+"]";
	}
	public String getColumns() {
		return columns;
	}
	public void setColumns(String columns) {
		this.columns = "["+columns+"]";
	}
	public boolean isPagination() {
		return pagination;
	}
	public void setPagination(boolean pagination) {
		this.pagination = pagination;
	}
	public boolean isRownumbers() {
		return rownumbers;
	}
	public void setRownumbers(boolean rownumbers) {
		this.rownumbers = rownumbers;
	}
	public boolean isSingleSelect() {
		return singleSelect;
	}
	public void setSingleSelect(boolean singleSelect) {
		this.singleSelect = singleSelect;
	}
	public String getLoadMsg() {
		return loadMsg;
	}
	public void setLoadMsg(String loadMsg) {
		this.loadMsg = loadMsg;
	}
	public boolean isEditable() {
		return editable;
	}
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
	public boolean isBorder() {
		return border;
	}
	public void setBorder(boolean border) {
		this.border = border;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
}

